package com.fnzn.entranceGuard.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.fnzn.entranceGuard.entity.GuardIcInfo;
import com.github.pig.common.util.ResponseUtil;

/**
 * <p>
 * IC信息管理 服务类
 * </p>
 *
 * @author JokerGao
 * @since 2018-06-25
 */
public interface IGuardIcInfoService extends IService<GuardIcInfo> {



    ResponseUtil addByHouseOwnerId(GuardIcInfo guardIcInfo);

    ResponseUtil addByUserId(GuardIcInfo guardIcInfo);

    ResponseUtil deleteIcInfoById(GuardIcInfo guardIcInfo);

    Page getIcInfoById(Page<GuardIcInfo> page, String id);


    Page selectByUserId(Page<GuardIcInfo> page, String houseOwnerIdOrUserId);

    String selectCodeByUserId(String houseOwnerIdOrUserId);

    Page selectByHouseOwnerId(Page<GuardIcInfo> page, String houseOwnerIdOrUserId);

    String selectCodeByHouseOwnerId(String houseOwnerIdOrUserId);
}
